<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class TaskModel extends Model
{
    use SoftDeletes;

    protected $table = 'task';

    public function taskRelated()
    {
        return self::hasMany(TaskRelatedModel::class, 'task_id', 'id');
    }
}
